package com.bookshop.promotion.logic;

public class DiscountCoupons implements ICoupons{
	private static final long serialVersionUID = 7267370676777964201L;
	int mCount;
	double mCiscountRate;
	
	public DiscountCoupons(double pCiscountRate,int pCount){
		mCiscountRate = pCiscountRate;
		mCount = pCount;
	}
	
	@Override
	public int getCount(){
		return mCount;
	}
	
	@Override
	public double getInfo(){
		return mCiscountRate;
	}
	@Override
	public void useCoupons(int pUseCount){
		mCount-=pUseCount;
	}

	@Override
	public void add(int pCount) {
		++mCount;
	}
	
}
